<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	<style type="text/css">
		body{
			text-align: center;
    
		}
#sec{
	color: red;
	font-size: 25px;
}
	</style>
	</head>
	<body>
		
		<h2>提交成功</h2>
		<a href="http://www.runoob.com">
		<span id="sec">5</span>
		</a>
<script type="text/javascript">
		var num=5;
		function a(){
		if(num>0){
			num--;
			span.innerHTML=num;
		}
		else{
			clearInterval(timer);
		
		location.href="http://www.runoob.com";
		}}
		var timer=window.setInterval(a,1000);
			
</script>
	</body>
</html>
